package tests;

import main.Workers;
import main.ReflectionQuery;

import org.junit.Test;

public class REflectionTests {

	@Test
	public void testAddQuery() throws Exception {
		Workers man = new Workers();
		man.set_name("Vasya");
		man.set_surname("Pupkin");
		man.setAge(18);
		man.setSalary(1500);
		ReflectionQuery rq = new ReflectionQuery();
		System.out.println(rq.getAddQuery(man));
	}
	
	@Test
	public void testSelectQuery() {
		ReflectionQuery rq = new ReflectionQuery();
		System.out.println(rq.getSelectQuery(Workers.class));
	}

}
